CC Mode: Handle C++20's if consteval
authorAlan Mackenzie <acm@muc.de>
Tue, 26 Mar 2024 20:59:43 +0000 (20:59 +0000)
committerAlan Mackenzie <acm@muc.de>
Tue, 26 Mar 2024 20:59:43 +0000 (20:59 +0000)
commited85132740b39c147647be1831abb64a3f514d57
tree5cb188fdd89b42776443714f063197194e819b4f
parent004f2493a542dd0b804a30e97fc612884ca440f4
CC Mode: Handle C++20's if consteval

* lisp/progmodes/cc-engine.el (c-after-conditional): Handle the
new keyword in place of a paren sexp after `if'.

* lisp/progmodes/cc-langs.el (c-negation-op-re)
(c-paren-clause-kwds, c-paren-clause-key)
(c-block-stmt-with-kwds, c-block-stmt-with-key): New
lang-consts/vars.

* if-11.cc, if-11.res: New test files.
lisp/progmodes/cc-engine.el
lisp/progmodes/cc-langs.el